package com.dmw.dao;

import com.dmw.pojo.Users;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface IUserDaoRepository02 extends Repository <Users ,Integer> {
    @Query(value = "from Users where userName =?")
    List<Users>  findUserName(String userName);

    @Query("from Users where userName like ? ")
    List<Users>  findUserNameLike(String userName);

    @Query("from Users where userName =? and realName=?")
    List<Users>  findUserNameAndRealName(String userName, String realName);


}
